<template>
  <div>
    <template v-if="to">
      <router-link to="to">
        <slot></slot>
      </router-link>
      <span>{{ eparator }}</span>
    </template>
    <template v-else>
      <slot></slot>
      <span>{{ eparator }}</span>
    </template>
  </div>
</template>
<script>
export default {
  name: '',
  inject: ['eparator'],
  props: {
    to: {
      type: [String, Object]


    }
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='scss'  scoped>
span {
  margin: 0 20px;
}
</style>
